
<div>
@if(1==1)
    @foreach($list as $val)
        <p>{{$val->id}}</p>
        <p>{{$val->name}}</p>
        <p>{{$val->age}}</p>
        @if($val->age == null){
          <p>0</p>
        }
        @endif
    @endforeach
@else
<?php
    $v = [0,1,2,3,4,5,6];

  for($i=0;$i<7;$i++){
    echo current($v);
    next($v);
  }

    ?>
@endif

</div>
